# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=devhelp
pkgver=43.0
pkgrel=2
pkgdesc="API documentation browser for GTK+ and GNOME"
url="https://wiki.gnome.org/Apps/Devhelp"
arch="all"
license="GPL-2.0-or-later"
depends="gsettings-desktop-schemas"
makedepends="
	amtk-dev
	appstream-glib
	glib-dev
	gobject-introspection-dev
	gsettings-desktop-schemas-dev
	itstool
	meson
	webkit2gtk-4.1-dev
	"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/devhelp/${pkgver%.*}/devhelp-$pkgver.tar.xz"

build() {
	abuild-meson . output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
92f147659754480ac4aa02f21558572d4bb8a034251225d344a8cae16824d9c14071751dfca6439f98dc7f7884fb35ef2d9c708e42f11bb6b3dfd8648b784654  devhelp-43.0.tar.xz
"
